Skip to content

Bump to AGP 9.0 - #222

Draft
eric-labelle wants to merge 9 commits into
cashapp:mainfrom
eric-labelle:ela/bump-agp900
Draft

Bump to AGP 9.0#222
eric-labelle wants to merge 9 commits into
cashapp:mainfrom
eric-labelle:ela/bump-agp900

Conversation

@eric-labelle

@eric-labelle eric-labelle commented Sep 25, 2025

Copy link
Copy Markdown
Collaborator

Upgrade to Android Gradle Plugin 9.0

This PR upgrades the project to Android Gradle Plugin (AGP) 9.0 and makes all necessary compatibility changes.

Changes

🚀 Version Upgrades

  • AGP: 8.13.09.0.0-rc01
  • Android Tools: 31.13.032.0.0-rc01
  • Kotlin: 2.1.202.2.20
  • KSP: 2.1.20-1.0.322.3.2 (this version fixes ksp to work with agp's built-in kotlin support)
  • compileSdk: Updated to 36 across all test fixtures and sample modules

🧹 Plugin Cleanup

Removed the org.jetbrains.kotlin.android plugin throughout the codebase. AGP 9.0 now supports Kotlin natively, making this plugin redundant. This change affects:

  • All test fixtures (53 build.gradle files)
  • Sample modules
  • Root build configuration

🔧 Code Synchronization

Updated DependencyConfigurator.kt in the AGP patch to sync with AGP 9.0's internal changes, simplifying the implementation by removing 47 lines of code.

🐛 Bug Fixes

Fixed a missing task dependency in BetterDynamicFeaturesPlugin.kt where TypesafeImplementationsCompilationTask now explicitly depends on the implementationsTask to ensure proper task ordering.

Impact

  • 68 files changed: 88 insertions(+), 201 deletions(-)
  • Net reduction of ~113 lines due to plugin cleanup and code simplification
  • All test fixtures and samples updated for consistency

Testing

All existing test fixtures have been updated to work with the new versions, including:

  • Various dependency scenarios (transitive, variant-aware, multiplatform)
  • Resource handling tests
  • Build type and lockfile tests
  • Codegen functionality

@eric-labelle
eric-labelle force-pushed the ela/bump-agp900 branch 3 times, most recently from 8fa2f4e to 3b33098 Compare November 12, 2025 13:28
Comment thread gradle/libs.versions.toml
kotlin = "2.2.20"
kotlinPoet = "1.13.1"
ksp = "2.1.20-1.0.32"
ksp = "2.3.2"

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this version fixes the ksp integration with the built-in kotlin support in agp 9 google/ksp#2615

@eric-labelle
eric-labelle force-pushed the ela/bump-agp900 branch 3 times, most recently from 000f98a to 55ebed2 Compare November 17, 2025 16:50
@eric-labelle
eric-labelle force-pushed the ela/bump-agp900 branch 2 times, most recently from 4812a3a to b741f7e Compare November 27, 2025 14:16
@eric-labelle
eric-labelle force-pushed the ela/bump-agp900 branch 2 times, most recently from a1dcb01 to d5708ef Compare December 22, 2025 16:28
# Conflicts:
#	gradle/libs.versions.toml
AGP 9 support kotlin natively so we do not need to add this plugin anymore.

# Conflicts:
#	gradle-plugin/src/test/fixtures/buildscript.gradle
#	sample/build.gradle
ksp-2.1.20-1.0.32 is too old for kotlin-2.2.10. Please upgrade ksp or downgrade kotlin-gradle-plugin to 2.1.20.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant